package cn.pegasus.teamwork.pegasus.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.iyizhan.teamwork.base.service.impl.BaseServiceImpl;
import cn.iyizhan.teamwork.base.util.PageHelper;
import cn.iyizhan.teamwork.base.util.PageObject;
import cn.pegasus.teamwork.pegasus.entity.BussPropertyFunddetails;
import cn.pegasus.teamwork.pegasus.entity.BussServiceProject;
import cn.pegasus.teamwork.pegasus.mapper.BussPropertyFunddetailsMapper;
import cn.pegasus.teamwork.pegasus.service.BussPropertyFunddetailsService;


/**
 * @author cyl
 * @version 
 */
@Service("bussPropertyFunddetailsService")
public class BussPropertyFunddetailsServiceImpl extends BaseServiceImpl<BussPropertyFunddetails, BussPropertyFunddetailsMapper> implements BussPropertyFunddetailsService {
	// 注入当前dao对象
    @Autowired
    private BussPropertyFunddetailsMapper bussPropertyFunddetailsMapper;

    public BussPropertyFunddetailsServiceImpl() {
        setMapperClass(BussPropertyFunddetailsMapper.class, BussPropertyFunddetails.class);
    }

	@Override
	public PageObject<BussPropertyFunddetails> PageList(Map<String, Object> map) {
		int totalData = bussPropertyFunddetailsMapper.getCount(map);
        PageHelper pageHelper = new PageHelper(totalData, map);
        List<BussPropertyFunddetails> list = bussPropertyFunddetailsMapper.findListByPage(pageHelper.getMap());
        PageObject<BussPropertyFunddetails> pageObject = pageHelper.getPageObject();
        pageObject.setDataList(list);
		return pageObject;
	}
    
 
}
